
import 'package:flutter/material.dart';
import 'package:myapp1/pages/home.dart';
import 'package:myapp1/pages/loading.dart';
import 'package:myapp1/pages/choose_location.dart';
import 'package:myapp1/pages/weather.dart';
import 'package:flutter_easyloading/flutter_easyloading.dart';
//  知识点: 路由跳转、生命周期、异步编程、http请求
void main() => runApp(MaterialApp(
  // home: Home(),
  initialRoute: '/home',
  routes: {
    '/loading': (context) => Loading(),
    '/home': (context) => Home(),
    '/location': (context) => ChooseLocation(),
    '/weather': (context) => Weather(),
  },
  builder: EasyLoading.init(),
));


